<!DOCTYPE html>
<!--
Copyright 2012 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Author: Renato Mangini (mangini@chromium.org)
Author: Luis Leao (luisleao@gmail.com)
-->

<html>
<head>
  <meta charset="utf-8" />
  <link rel="stylesheet" media="all" href="css/main.css"></link>
  <title>Chrome ADK control</title>
</head>
<body>
  <header>
    <div id="expand" class="expandable">
      <div id="status">Hover here to connect</div>
      <div id="handler">settings</div>
      <div class="commands">
        <select class="serial_devices">
        </select>
        <button class="refresh">refresh</button><br/>
        <button class="open">open</button>
        <button class="close">close</button>
        <div class="log"></div>
      </div>
    </div>
    <nav>
      <ul>
        <li><a id="inlink" href="#inlink">In</a></li>
        <li><a id="outlink" href="#outlink">Out</a></li>
      </ul>
    </nav>
  </header>
  <section id="in">
    <article class="temp">
      <p>Temp<label><span id="temp">80</span>&deg;</label></p>
    </article>
    <article class="light">
      <p>Light
         <label><span id="light">86.4</span><small>%</small></label>
         <strong><span id="lightv1">885</span></strong>/1024
      </p>
    </article>
    <article class="buttons">
      <p>Buttons<br/>
      <div id="b1"></div>
      <div id="b2"></div>
      <div id="b3"></div>
      <div id="bc"></div></p>
    </article>
    <article class="joys">
      <p>Joystick<br/>
      <div id="joy">
        <div class="pointer">0,0</div>
      </div>
    </article>
  </section>
  <section id="out" class="hidden">
    <article class="servos">
      <p>Servo<sub>1</sub></p>
      <input type="range" min="0" max="100" value="0"/>
      <p>Servo<sub>2</sub></p>
      <input type="range" min="0" max="100" value="0"/>
      <p>Servo<sub>3</sub></p>
      <input type="range" min="0" max="100" value="0"/>
    </article>
    <article class="relays">
      <p>Relay<sub>1</sub><button class="r1">Off</button></p>
      <p>Relay<sub>2</sub><button class="r2">Off</button></p>
    </article>
    <article class="leds">
      <p id="led1"><label>Led<sub>1</sub></label>
      <input class="r" type="range" min="0" max="255" value="0"/><span>0</span>
      <input class="g" type="range" min="0" max="255" value="0"/><span>0</span>
      <input class="b" type="range" min="0" max="255" value="0"/><span>0</span></p>
      <p id="led2"><label>Led<sub>2</sub></label>
      <input class="r" type="range" min="0" max="255" value="0"/><span>0</span>
      <input class="g" type="range" min="0" max="255" value="0"/><span>0</span>
      <input class="b" type="range" min="0" max="255" value="0"/><span>0</span></p>
      <p id="led3"><label>Led<sub>3</sub></label>
      <input class="r" type="range" min="0" max="255" value="0"/><span>0</span>
      <input class="g" type="range" min="0" max="255" value="0"/><span>0</span>
      <input class="b" type="range" min="0" max="255" value="0"/><span>0</span></p>
    </article>
  </section>
  <script src="js/serial.js"></script>
  <script src="js/adk.js"></script>
</body>
</html>
